package com.atguigu.mapper;

import com.atguigu.entity.Course;
import com.atguigu.entity.vo.CourseQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CourseMapper extends BaseMapper<Course> {

    List<Map<String, Object>> queryForList(Map<String, Object> params);

    int queryCount(Map<String, Object> params);

    List<Course> queryList(Page<Course> page, CourseQuery courseQuery);

    List<Course> queryList(CourseQuery courseQuery);
}
